<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GraphPaths:  File sorgente backup/nodo.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GraphPaths
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Creazione di grafi e calcolo dei percorsi minimi</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0b457ace402ca7986e274a9663e8d868.html">backup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">nodo.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="backup_2nodo_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef NODO_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define NODO_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;climits&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="backup_2elemento__ui_8h.html">elemento_ui.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classnodo.html">   10</a></span>&#160;<span class="keyword">class </span><a class="code" href="classnodo.html">nodo</a> : <span class="keyword">public</span> <a class="code" href="classelemento__ui.html">elemento_ui</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <a class="code" href="classnodo.html">nodo</a>();</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classnodo.html#ab3e2e7b0fef4e18ace0076e595725666">   24</a></span>&#160;        <a class="code" href="classnodo.html#ab3e2e7b0fef4e18ace0076e595725666">nodo</a>(gdouble x, gdouble y, guint indice) </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;            set_x(x);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;            set_y(y);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;            this-&gt;indice = indice;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;            set_precedente(NULL);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;            set_distanza(G_MININT);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;            set_selected(FALSE);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;            set_over(FALSE);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;            raggio = 25.0;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        }</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="classnodo.html">nodo</a>();</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classnodo.html#ac0dd93d41a8ad574c342f4af0f0bbfd5">   41</a></span>&#160;        guint <a class="code" href="classnodo.html#ac0dd93d41a8ad574c342f4af0f0bbfd5">get_indice</a>() { <span class="keywordflow">return</span> indice; }</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classnodo.html#ad4f47d88f3f02088d1a957fec7112ecc">   45</a></span>&#160;        gint <a class="code" href="classnodo.html#ad4f47d88f3f02088d1a957fec7112ecc">get_distanza</a>() { <span class="keywordflow">return</span> distanza; }</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classnodo.html#a79957e21147f4ff9e704168eb29995a3">   49</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classnodo.html#a79957e21147f4ff9e704168eb29995a3">set_distanza</a>(<span class="keywordtype">int</span> val) { distanza = val; }</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classnodo.html#a52f0aa432226bd09db20b2ec45634257">   52</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classnodo.html#a52f0aa432226bd09db20b2ec45634257">set_distanza_infinita</a>() { distanza = G_MAXINT; }</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classnodo.html#a4147473afe57f90dd7bdd43b4c93944f">   57</a></span>&#160;        <a class="code" href="classnodo.html">nodo</a>* <a class="code" href="classnodo.html#a4147473afe57f90dd7bdd43b4c93944f">get_precedente</a>() { <span class="keywordflow">return</span> precedente; }</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classnodo.html#adc3b5cd9089b4dacf3df3bbc069909bc">   61</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classnodo.html#adc3b5cd9089b4dacf3df3bbc069909bc">set_precedente</a>(<a class="code" href="classnodo.html">nodo</a>* val) { precedente = val; }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="classnodo.html#acd6c9f4933082873d836e0bda367c22d">   66</a></span>&#160;    gdouble <a class="code" href="classnodo.html#acd6c9f4933082873d836e0bda367c22d">get_raggio</a>() { <span class="keywordflow">return</span> raggio; }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> update(gdouble x, gdouble y);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(cairo_t* &amp;cr);</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keyword">virtual</span> gboolean intersect(gdouble x, gdouble y);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        guint indice; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        gint distanza; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <a class="code" href="classnodo.html">nodo</a>* precedente; </div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        gdouble raggio; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;};</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#endif // NODO_H</span></div>
<div class="ttc" id="classnodo_html_a79957e21147f4ff9e704168eb29995a3"><div class="ttname"><a href="classnodo.html#a79957e21147f4ff9e704168eb29995a3">nodo::set_distanza</a></div><div class="ttdeci">void set_distanza(int val)</div><div class="ttdef"><b>Definition:</b> nodo.h:49</div></div>
<div class="ttc" id="classnodo_html_acd6c9f4933082873d836e0bda367c22d"><div class="ttname"><a href="classnodo.html#acd6c9f4933082873d836e0bda367c22d">nodo::get_raggio</a></div><div class="ttdeci">gdouble get_raggio()</div><div class="ttdef"><b>Definition:</b> nodo.h:66</div></div>
<div class="ttc" id="classnodo_html_a52f0aa432226bd09db20b2ec45634257"><div class="ttname"><a href="classnodo.html#a52f0aa432226bd09db20b2ec45634257">nodo::set_distanza_infinita</a></div><div class="ttdeci">void set_distanza_infinita()</div><div class="ttdef"><b>Definition:</b> nodo.h:52</div></div>
<div class="ttc" id="classelemento__ui_html"><div class="ttname"><a href="classelemento__ui.html">elemento_ui</a></div><div class="ttdef"><b>Definition:</b> elemento_ui.h:7</div></div>
<div class="ttc" id="classnodo_html_ad4f47d88f3f02088d1a957fec7112ecc"><div class="ttname"><a href="classnodo.html#ad4f47d88f3f02088d1a957fec7112ecc">nodo::get_distanza</a></div><div class="ttdeci">gint get_distanza()</div><div class="ttdef"><b>Definition:</b> nodo.h:45</div></div>
<div class="ttc" id="classnodo_html_ab3e2e7b0fef4e18ace0076e595725666"><div class="ttname"><a href="classnodo.html#ab3e2e7b0fef4e18ace0076e595725666">nodo::nodo</a></div><div class="ttdeci">nodo(gdouble x, gdouble y, guint indice)</div><div class="ttdef"><b>Definition:</b> nodo.h:24</div></div>
<div class="ttc" id="classnodo_html_ac0dd93d41a8ad574c342f4af0f0bbfd5"><div class="ttname"><a href="classnodo.html#ac0dd93d41a8ad574c342f4af0f0bbfd5">nodo::get_indice</a></div><div class="ttdeci">guint get_indice()</div><div class="ttdef"><b>Definition:</b> nodo.h:41</div></div>
<div class="ttc" id="classnodo_html"><div class="ttname"><a href="classnodo.html">nodo</a></div><div class="ttdef"><b>Definition:</b> nodo.h:10</div></div>
<div class="ttc" id="classnodo_html_a4147473afe57f90dd7bdd43b4c93944f"><div class="ttname"><a href="classnodo.html#a4147473afe57f90dd7bdd43b4c93944f">nodo::get_precedente</a></div><div class="ttdeci">nodo * get_precedente()</div><div class="ttdef"><b>Definition:</b> nodo.h:57</div></div>
<div class="ttc" id="classnodo_html_adc3b5cd9089b4dacf3df3bbc069909bc"><div class="ttname"><a href="classnodo.html#adc3b5cd9089b4dacf3df3bbc069909bc">nodo::set_precedente</a></div><div class="ttdeci">void set_precedente(nodo *val)</div><div class="ttdef"><b>Definition:</b> nodo.h:61</div></div>
<div class="ttc" id="backup_2elemento__ui_8h_html"><div class="ttname"><a href="backup_2elemento__ui_8h.html">elemento_ui.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 1 Lug 2014 08:14:03 per GraphPaths da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
